<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>班级成绩查询</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
function bjChange(value) {
	$('#table').load('grade',{method:'bjChange',bjId:value});
}
function fandeng() {
	window.location="login.jsp"
}	
function fanzhu() {
	window.location="main?method=main"
}	
</script>

</head>
<body>
<p>
	<label>班级：</label>
	<select onchange="bjChange(this.value)">
		<option value="0">请选择</option>
		<c:forEach items="${list }" var="bj">
			<option value="${bj.id }">${bj.name }</option>
		</c:forEach>
	</select>
</p>
<div id="table">
	<div class="aaa">
  <button onclick="fandeng()" class="btn">返回登录页面</button>
	<button onclick="fanzhu()" class="btn">返回主页面</button>
	</div>
</div>
</body>
</html>